<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title></title>
  <script src="./static/mapApi/map.min.js"></script>
  <script src="https://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
  <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>

<body>
  <noscript>
    <strong>We're sorry but ZGZ doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
  <script>

    // 微信jssdk配置
    $(() => {

      const wxConfigData = {
        url: location.href.split('#')[0]
      };


      $.ajax({
        type: "get",
        dataType: 'json',
        contentType: "application/json",
        data: wxConfigData,
        url: "WXHandler.ashx",
        success: function (res) {

          wx.config({
            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            appId: res.appId, // 必填，公众号的唯一标识
            timestamp: res.timestamp, // 必填，生成签名的时间戳
            nonceStr: res.noncestr, // 必填，生成签名的随机串
            signature: res.signature, // 必填，签名，见附录1
            jsApiList: [
              "onMenuShareTimeline",
              "onMenuShareAppMessage",
              "onMenuShareQQ",
              "hideMenuItems",
              "startRecord",
              "stopRecord",
              "translateVoice"
            ] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
          });
        },
        error: function (res) {

        }
      });

    })

  </script>
</body>

</html>